<?php
namespace app\common\model;

use think\Model;
use app\common\model\Property;

class Property extends Model
{
    public function cate_list($typr_id)
    {
        $where = [];
        $where[] = ['type', 'eq', $typr_id];
        $where[] = ['status', 'eq', 1];
         $order = 'id desc';
        $list =  $this->where($where)->order('id desc')->select();
        
        return $list;
    }
}